package com.security.controller;

import com.security.feign.TestFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cici
 */
@RestController
@RequestMapping("test")
@Slf4j
public class TestController {

    @Autowired
    private TestFeignClient client;

    @GetMapping("/feign")
    public void testFeign(){
            synchronized(client){}
      log.info("=====");
      client.testFeign();
    }
}
